<html>
<head><meta charset="utf-8"><title>Edition policy, rfc#2795 · project leads (public) · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/index.html">project leads (public)</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html">Edition policy, rfc#2795</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="204140927"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204140927" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Gilcher <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204140927">(Jul 16 2020 at 20:50)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116009">nikomatsakis</span> <a href="#narrow/stream/217588-project-leads.20(public)/topic/Edition.20policy/near/204134655">said</a>:</p>
<blockquote>
<p>another I just saw is a proposed change to the semantics of <code>panic!("{var}")</code>, so that it would mean <code>panic!("{}", var)</code>, essentially</p>
</blockquote>
<p>I'm pretty hesitant on such miniscule changes.</p>



<a name="204150935"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204150935" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204150935">(Jul 16 2020 at 22:23)</a>:</h4>
<p>Do you mean you'd prefer not to have accepted the RFC?</p>



<a name="204162689"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204162689" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lokathor <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204162689">(Jul 17 2020 at 01:23)</a>:</h4>
<p>(For reference, <a href="https://github.com/rust-lang/rfcs/blob/master/text/2795-format-args-implicit-identifiers.md">https://github.com/rust-lang/rfcs/blob/master/text/2795-format-args-implicit-identifiers.md</a>)</p>



<a name="204203666"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204203666" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Gilcher <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204203666">(Jul 17 2020 at 13:11)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116009">nikomatsakis</span> <a href="#narrow/stream/217588-project-leads.20(public)/topic/Edition.20policy/near/204150935">said</a>:</p>
<blockquote>
<p>Do you mean you'd prefer not to have accepted the RFC?</p>
</blockquote>
<p>Yes, but there might be some bias of "i have learned it the old way". It does introduce a situation where we have 2 versions of a concept and I'm not sure how large the group of people sees this as so important.</p>
<p>There might also just be some background burn of spending much time in communities that tried to kill every character and line of code in the name of brevity and ease :).</p>
<p>I would definitely not feel bad if it were adopted in an edition, it's pretty mild.</p>



<a name="204205603"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204205603" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> XAMPPRocky <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204205603">(Jul 17 2020 at 13:30)</a>:</h4>
<p>FWIW, the current code you have to write is actually a bit bigger. To be able to write <code>"{var}"</code> in a format macro today you have to write <code>panic!("{var}", var = var)</code>, and when you have to write <code>var = var</code> for each variable you want to interpolate in your string it becomes a bit of a mess at the end of your format macro.</p>



<a name="204206302"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204206302" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Gilcher <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204206302">(Jul 17 2020 at 13:36)</a>:</h4>
<p>That's a good point. It also isn't used much as far as I see, so there may actually be a good case for it.</p>



<a name="204206317"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204206317" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204206317">(Jul 17 2020 at 13:36)</a>:</h4>
<p><span class="user-mention" data-user-id="215333">@Florian Gilcher</span> It's rather off topic, but I am pretty sure that, in practice, this does't invalidate existing code so much as add options.</p>



<a name="204206350"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204206350" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204206350">(Jul 17 2020 at 13:37)</a>:</h4>
<p>(Off topic only in the sense that it's specific to that particular RFC and not so much to the topic of edition policy in general)</p>



<a name="204206504"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204206504" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204206504">(Jul 17 2020 at 13:38)</a>:</h4>
<p>Basically there's an "edge case" where you can write <code>panic!("foo {}")</code> and that happens to panic with the string <code>{}</code>, but if you write <code>panic!("foo {}", 22)</code>, that substitutes <code>22</code>. I didn't know this until recently. That's the edge case that is affected by this RFC, essentially.</p>



<a name="204206537"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204206537" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204206537">(Jul 17 2020 at 13:38)</a>:</h4>
<p>Also this behavior is different between <code>core::panic</code> and <code>std::panic</code></p>



<a name="204206630"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204206630" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204206630">(Jul 17 2020 at 13:39)</a>:</h4>
<p>(forked to a distinct topic, now it's on topic again :)</p>



<a name="204206802"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204206802" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204206802">(Jul 17 2020 at 13:41)</a>:</h4>
<p>side note that I've been writing some TypeScript for fun on the side, and I do find that the JS "interpolation strings" are really just so much more convenient...</p>



<a name="204206868"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/217588-project%20leads%20%28public%29/topic/Edition%20policy%2C%20rfc%232795/near/204206868" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Gilcher <a href="https://rust-lang.github.io/zulip_archive/stream/217588-project-leads-(public)/topic/Edition.20policy.2C.20rfc.232795.html#204206868">(Jul 17 2020 at 13:41)</a>:</h4>
<p>Yeah, didn't want to turn that into a discussion about this - it's a good example for a small change that needs an edition, but maybe not motivate one per se.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>